<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="kuakao" uri="http://www.kuakao.net/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>产品详情</title>
    <link href="${pageContext.request.contextPath}/style/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/tool/jquery/jquery.min.js"></script>
<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
</head>
<body>
 <div class="mainCon">
  <div class="mCon">
  <div class="mCon_tab">
   <ul>   
    <li><span class="mCon_1cuta">产品详情</span></li>
	<li><span class="mCon_1cuta"><a href="javascript:history.back(-1);">返回</a></span></li>
   </ul>
  </div>
  <br/>
  <div class="mCon_tab">
      <ul>
        <li><span class="mCon_1cuta">基本信息</span></li>
      </ul>
  </div>
    <div class="main_list">
      <table width="100%" border="1" cellspacing="0" cellpadding="0">
      	<tr>
      		<td class="main_title main_title2 td_center">产品ID</td><td>${baseinfo.id}</td>
      		<td class="main_title main_title2 td_center">名称</td><td>${baseinfo.pname}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">所属分类ID</td><td>${cateInfo.id}</td>
      		<td class="main_title main_title2 td_center">所属分类名称</td><td>${cateInfo.catename}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">简拼</td><td>${baseinfo.jianpin}</td>
      		<td class="main_title main_title2 td_center">单位</td><td>${baseinfo.unit}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">规格</td><td>${baseinfo.standard}</td>
      		<td class="main_title main_title2 td_center">包装规格</td><td>${baseinfo.packstandard}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">出厂价</td><td>${baseinfo.price}</td>
      		<td class="main_title main_title2 td_center">结算公式</td><td>${baseinfo.pfunc}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">运费系数</td><td>${baseinfo.freighttype}</td>
      		<td class="main_title main_title2 td_center">最低提成(每吨)</td><td>${baseinfo.minpayment}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">存量</td><td>${baseinfo.totalnum}</td>
      		<td class="main_title main_title2 td_center">&nbsp;</td><td>&nbsp;</td>
      	</tr>
      	
      </table>
     </div>
  <div class="clear"></div>
  
  <br/>
  <div class="mCon_tab">
      <ul>
        <li><span class="mCon_1cuta">产品价格信息</span></li>
      </ul>
  </div>
    <div class="main_list">
    	<table width="100%" border="1" cellspacing="0" cellpadding="0">
        <tr class="main_title main_title2">
          
          <td class="td_center" width="20%">日期从</td>
          <td class="td_center" width="20%">日期到</td>
          <td class="td_center" width="20%">价格从</td>
          <td class="td_center" width="20%">价格到</td>
          <td class="td_center" width="20%">提成比(%)</td>

        </tr>
        <c:if test="${!empty priceInfos}">
        <c:forEach items="${priceInfos}" var="one">
        
        <tr class="main_td">
          <td class="td_center"><fmt:formatDate pattern="yyyy-MM-dd" value="${one.timefrom}"/></td>
          <td class="td_center"><fmt:formatDate pattern="yyyy-MM-dd" value="${one.timeto}"/></td>
          
          <td class="td_center">${one.pricefrom}</td>
          <td class="td_center">${one.priceto}</td>
          <td class="td_center">${one.payment}</td>
        </tr>
        
        </c:forEach>
        </c:if>
        
      </table>
    </div>
  <div class="clear"></div>
  </div>
  <div class="scxz">
      <input class="fx1" type="button" onclick="history.back(-1);" value="返 回" />
  </div>
  <div class="clear"></div>
 </div>
</body>
</html>


